package hate.controller;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 登录管理
 */
@Controller
@RestController
@EnableAutoConfiguration
@RequestMapping("/mgmt")
public class Mgmt {
    @GetMapping(value = "")
    public void mgmt(HttpServletRequest request, HttpServletResponse response)throws IOException {
        response.sendRedirect( "/mgmt/login.html");
    }
}